import api from "./api_base";

export const uploadSddInfo = (data) => {
  return api.post("/ssd/info", data);
};

//分页获取固态硬盘信息
export const getSddInfo = (page, limit, data) => {
  return api.get(`/ssd/info`, {
    params: {
      page,
      limit,
      ...data,
    },
  });
};

//通过id更新固态硬盘信息
export const updateSddInfo = (id, data) => {
  return api.post(`/ssd/info/${id}`, data);
};

//通过id删除固态硬盘信息
export const deleteSddInfo = (id) => {
  return api.post(`/ssd/info/delete/${id}`);
};
